<?php
//var_export($_COOKIE);
require __DIR__.'/common/common.php';
$uid=$_POST['uid'];
//$uid=137;
$sql="SELECT content FROM article WHERE uid=$uid";
$data=mysqli_query($mysql,$sql);
$arr=mysqli_fetch_assoc($data);
mysqli_free_result($data);
$str = '<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body>'.implode($arr).'</body></html>';
file_put_contents(__DIR__.'/b.html',$str);
//include __DIR__.'/b.html';
echo $str;
